package com.atxiao.demo.mapper;

import com.atxiao.demo.bean.Account;
import com.atxiao.demo.bean.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
//@Repository
public interface AccountMapper extends BaseMapper<Account> {

    /**
     * 根据卡号,查账户
     *
     */
    @Select("select account_card_num from t_account where account_card_num = #{account}")
    Account selectAccount(@Param("account") String account);  //根据卡号查询账户

    /**
     * 更新账户余额
     */
    public void updateAccount(Account account);
}
